#ifndef WC_H
#define WC_H

#include <stdio.h>

// Structure to hold counting results
typedef struct {
    int char_count;   // Number of characters
    int word_count;   // Number of words
    int sent_count;   // Number of sentences
} CountResult;

// Initialize count result structure
void init_counts(CountResult *result);

// Count characters in a file
int count_chars(const char *filename);

// Count words in a file
int count_words(const char *filename);

// Count sentences in a file
int count_sentences(const char *filename);

// Count all three metrics in one pass
void count_all(const char *filename, CountResult *result);

#endif